import request from '@/utils/request'
export function getDepartments() {
  return request.get('/company/department')
}
export function getSimpleEmployee() {
  return request.get('/sys/user/simple')
}
export function addDepartments(data) {
  return request.post('/company/department', data)
}
export function deleteDepartment(id) {
  return request.delete('/company/department/' + id)
}
export function getDepartmentById(id) {
  return request.get('/company/department/' + id)
}
export function editDepartments(data) {
  return request.put('/company/department/' + data.id, data)
}

